﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WomanMotion.WebApi.Infrastructure.Ioc;

namespace WomanMotion.WebApi.Wechat.IService
{
    public interface IWechatCommon : ITransientDependency
    {
        /// <summary>
        /// 根据用户code获取微信openid
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<KeyValuePair<int, string>> GetOpenidAsync(string code);

        /// <summary>
        /// 推送订阅赛事信息
        /// </summary>
        /// <param name="openid"></param>
        /// <param name="templateId"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<KeyValuePair<int, string>> MatchSendMegAsync(string openid, string templateId, Dictionary<string, string> data);
    }
}